package cn.cheqi.recovery.background.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyConfiguration implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
        registry.addViewController("/system").setViewName("system");
        //跳转到展示已入驻小区业主页面
        registry.addViewController("/system/user/toUserList").setViewName("system/user");
        //跳转到展示小区界面
        registry.addViewController("/system/community/toCommunityList").setViewName("system/community");
        //跳转到展示员工界面
        registry.addViewController("/system/employee/toEmployeeList").setViewName("system/employee");
        //跳转到展示订单界面
        registry.addViewController("/system/order/toOrderList").setViewName("system/order");
        //跳转到展示楼层界面
        registry.addViewController("/system/building/toBuildingList").setViewName("system/building");
        //跳转到展示未入驻小区业主页面
        registry.addViewController("/system/owner/toOwnerList").setViewName("system/owner");
    }
}
